<?
//рус
include_once (_CORE_PATH . "decorator_prototype.php");
class decorator_front extends decorator_prototype_class
{
    /**
		шаблон default
     */
    protected function DefaultTmp ()
    {
        $this->SetDefaultHeaders();
        $this->Response()->SetHeader('Content-Type', 'text/html; charset=UTF-8');
        
        $t = $this->GetTemplator();
        $t->siteName = MozgCfg::GetProp('site/global//siteName');
        $t->userStatus = $this->_ctrls->users->get_userstatus();
        $t->userMenu = $this->_ctrls->default->GetUserMenuFromCache();
        $t->menuActiveElement = $this->GetMenuActiveElement();
        $t->leftPane = $this->GetSecondAction('Left Sidebar');
        $t->rightPane = $this->GetSecondAction('Right Sidebar');
        $t->bottomScript = $this->GetSecondAction('Bottom Script');
        $t->content = $this->Response()->GetBody();
        $t->messages = $this->Libs()->messanger->getAllMessages();
        $t->user = $this->GetModule()->GetUser();
        
        $t->style = SysLoader::GetModule('media', 'http', '_web')->GetCtrl('style');
        
        $this->Response()->SetBody($t->render('_template.phtml'));
    }
 
}